package org.example.ch01.p07;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int x=scanner.nextInt();
        double y=scanner.nextDouble();
        double sum=x+y;
        double sqrtSum=Math.sqrt(sum);
        String sqrtStr=String.valueOf(sqrtSum);
        if (sqrtStr.length()>6){
            sqrtStr=sqrtStr.substring(0,6);
        }
        System.out.println(sum);
        System.out.println(sqrtSum);
        System.out.println(sqrtStr);
    }
}
